package cn.trigram.config;

import com.alibaba.csp.sentinel.adapter.servlet.CommonFilter;
import com.alibaba.csp.sentinel.adapter.servlet.callback.UrlBlockHandler;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * sentinel的自定义默认处理程序
 *
 * @author 一日看尽长安花
 * @date 2022/02/18 23:05:33
 *
 * @see CommonFilter CommonFilter中包括了其它更多的统一处理
 */
public class DefaultUrlBlockHandler implements UrlBlockHandler {

  @Override
  public void blocked(
      HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse,
      BlockException e
  ) throws IOException {

  }

}
